package com.szrt.java.day20170112.demo03;


import org.junit.Test;

import com.szrt.java.utils.ScottFileUtil;

public class ReadAndWriteTest {

	@Test
	public void readAndWrite(){
		
		String target = "src/com/szrt/java/day20170112/demo03/abc.txt";
		String filePath = "src/com/szrt/java/day20170112/demo03/cba.txt";
		
		String str = ScottFileUtil.readFile(target);
		
		ScottFileUtil.write(str,filePath);
	}
	
	@Test
	public void readAndWriteUtil(){
		
		String target = "src/com/szrt/java/day20170112/demo03/abc.txt";
		String filePath = "src/com/szrt/java/day20170112/demo03/cba.txt";
		
		ScottFileUtil.readAndWrite(target, filePath);
		
	}
	
}
